package com.wx.fresh.business.controller;


import com.wx.fresh.business.vo.couponVo.CouponAddVO;
import com.wx.fresh.business.vo.couponVo.CouponDeleteVO;
import com.wx.fresh.business.vo.couponVo.CouponVO;
import com.wx.fresh.common.util.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "商家优惠劵")
@RestController
@RequestMapping("business/Coupon")
public class CouponController {
    @ApiOperation(value = "查询所有优惠券", response = CouponVO.class)
    @GetMapping("/findAll")
    public CommonResult findAll(CouponVO couponVO) {
        return null;
    }

    @ApiOperation(value = "新增优惠券", response = CouponAddVO.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "coupon_id", value = "优惠券id", required = true, paramType = "form"),
            @ApiImplicitParam(name = "name", value = "优惠券名字", required = true, paramType = "form"),
            @ApiImplicitParam(name = "executive_standards", value = "优惠券门槛", required = true, paramType = "form"),
            @ApiImplicitParam(name = "type", value = "优惠券类型", required = true, paramType = "form"),
            @ApiImplicitParam(name = "start_time", value = "开始时间", required = true, paramType = "form"),
            @ApiImplicitParam(name = "end_time", value = "结束时间", required = true, paramType = "form"),
            @ApiImplicitParam(name = "all", value = "发行总量", required = true, paramType = "form"),
            @ApiImplicitParam(name = "store_id", value = "参与门店", required = true, paramType = "form"),
            @ApiImplicitParam(name = "spu_id", value = "参与商品spu", required = true, paramType = "form"),

    })
    @PostMapping("/add")
    public CommonResult add(CouponAddVO bCouponVO) {
        return null;
    }

    @ApiOperation(value = "删除优惠券", response = CouponDeleteVO.class)

    @ApiImplicitParams({
            @ApiImplicitParam(name = "coupon_id", value = "优惠券id", required = true, paramType = "form"),

    })
    @PostMapping("/delete")
    public CommonResult delete(CouponDeleteVO bCouponVO) {
        return null;
    }

    @ApiOperation(value = "查询优惠券id", response = CouponVO.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "coupon_id", value = "优惠券id", required = true, paramType = "form"),
    })
    @PostMapping("/findById")
    public CommonResult findById(CouponDeleteVO bCouponVO) {
        return null;
    }
}
